<template>
    <div style="text-align: -webkit-center;">
        <div ref="printTable">
            <table sheetName="样品评审表">
                <table  cellSpacing=0 cellPadding=0 width="950" align=center border=0 style="color:#000000">
                    <tbody>
                        <tr class=bgwhitecenter height=5>
                            <td colSpan=3 noWrap>&nbsp;</td>
                        </tr>
                        <tr class=bgwhitecenter height=25>
                            <td vAlign=bottom width="20%" noWrap align=left><img style="width: 150px;"
                                    src="/img/logo.png" />
                                <span style="vertical-align: top;"></span>
                            </td>
                            <td width="60%" colSpan=2 noWrap>&nbsp;</td>
                            <td vAlign=bottom width="20%" noWrap align=center>&nbsp;</td>
                        </tr>
                        <tr class=bgwhitecenter height=35>
                            <td colSpan=4 noWrap align=center><span style="font-size: 24px; font-weight: bold">新产品评审表</span>
                            </td>
                        </tr>
                        <tr class=bgwhitecenter>
                            <td style="font-size: 14px;" colSpan=2 noWrap align=left>业务员：{{ form.salesName }}</td>
                            <td style="font-size: 14px;" colSpan=2 noWrap align=right>编号：{{ form.number }}</td>
                        </tr>
                        <tr class=bgwhitecenter>
                            <td style="font-size: 14px;" colSpan=2 noWrap align=left>发行时间：{{ form.releaseDate }}</td>
                            <td style="font-size: 14px;" colSpan=2 noWrap align=right>完成时限：{{ form.completeDays }}个工作日</td>
                        </tr>
                    </tbody>
                </table>
                <table  width="950" align="center" class="printTable1" bordercolor="#000000" border="2"
                    cellspacing="0" v-if="form.appointStuffsArray">
                    <tbody>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">顾客名称</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">{{ form.custName }}</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">联系人</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11">{{ form.custMan }}</td>
                            <td class="bottomTableTd" style="font-size: 14px;" rowspan="9">营<br>业<br>部<br>确<br>认<br></td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">顾客性质</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox :checked="form.custCharacter == '0'" disabled>新顾客</el-checkbox>
                                <el-checkbox :checked="form.custCharacter == '1'" disabled>老顾客</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">顾客信誉</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11">
                                <el-checkbox :checked="form.custCredit == '0'" disabled>较好</el-checkbox>
                                <el-checkbox :checked="form.custCredit == '1'" disabled>一般</el-checkbox>
                                <el-checkbox :checked="form.custCredit == '2'" disabled>较差</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">客户要求</td>
                            <td style="font-size: 14px;" colspan="10">
                                <el-checkbox :checked="form.custRequire == '0'" disabled>制作样品</el-checkbox>
                                <el-checkbox :checked="form.custRequire == '1'" disabled>试生产</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">模具费用</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11">
                                <el-checkbox :checked="form.moldFee == '0'" disabled>不产生</el-checkbox>
                                <el-checkbox :checked="form.moldFee == '1'" disabled>顾客承担</el-checkbox>
                                <el-checkbox :checked="form.moldFee == '2'" disabled>STI承担</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">样品次数</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">{{ form.sampleFrequency }}</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">上次结果</td>
                            <td style="font-size: 14px;" colspan="11">
                                <el-checkbox :checked="form.previousResult == '0'" disabled>较好</el-checkbox>
                                <el-checkbox :checked="form.previousResult == '1'" disabled>一般</el-checkbox>
                                <el-checkbox :checked="form.previousResult == '2'" disabled>较差</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">样品形式</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox-group v-model="form.sampleForms" disabled>
                                    <el-col :span="12">
                                        <el-checkbox label="01">炭刷组件</el-checkbox>
                                        <el-checkbox label="02">刷架组件</el-checkbox>
                                        <el-checkbox label="03">炭刷</el-checkbox>
                                        <el-checkbox label="04">刷架</el-checkbox>
                                        <el-checkbox label="05">铜套</el-checkbox>
                                    </el-col>

                                    <el-col :span="12">
                                        <el-checkbox label="06">弹簧</el-checkbox>
                                        <el-checkbox label="07">端子</el-checkbox>
                                        <el-checkbox label="08">导线</el-checkbox>
                                        <el-checkbox label="09">其他</el-checkbox>
                                    </el-col>
                                </el-checkbox-group>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">安全选项</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                <el-checkbox :checked="form.securityItem == '1'" disabled>安全</el-checkbox>
                                <el-checkbox :checked="form.securityItem == '0'" disabled>非安全</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="3">预估月需求</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="6">{{ form.estimateMonthRequire }}</td>
                        </tr>
                        <tr>
                            <td style="font-size: 14px;" colspan="2">端子</td>
                            <td style="font-size: 14px;" colspan="4">
                                <el-checkbox :checked="form.terminal == '1'" disabled>顾客提供</el-checkbox>
                                <el-checkbox :checked="form.terminal == '2'" disabled>代用</el-checkbox>
                                <el-checkbox :checked="form.terminal == '3'" disabled>打样</el-checkbox>
                                <el-checkbox :checked="form.terminal == '0'" disabled>无</el-checkbox>
                            </td>
                            <td style="font-size: 14px;" colspan="2">弹簧</td>
                            <td style="font-size: 14px;" colspan="4">
                                <el-checkbox :checked="form.spring == '1'" disabled>顾客提供</el-checkbox>
                                <el-checkbox :checked="form.spring == '2'" disabled>代用</el-checkbox>
                                <el-checkbox :checked="form.spring == '3'" disabled>打样</el-checkbox>
                                <el-checkbox :checked="form.spring == '0'" disabled>无</el-checkbox>
                            </td>
                            <td style="font-size: 14px;" colspan="2">品质报告</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="14">

                                <el-checkbox :checked="form.qualityReport == '0'" disabled>无要求</el-checkbox>
                                <el-checkbox :checked="form.qualityReport == '1'" disabled>有要求
                                    (<input name="qualityReportRequire" class="txtBoxnoborder" disabled type="text"
                                        size="14" :value="form.qualityReportRequire">)
                                </el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td style="font-size: 14px;" colspan="2">样品数量</td>
                            <td style="font-size: 14px;" colspan="10">{{ form.amount }}</td>
                            <td style="font-size: 14px;" colspan="5">期望纳期</td>
                            <td style="font-size: 14px;" colspan="11">{{ form.sampleNaperiod }}</td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" rowspan="2" colspan="2">
                                再次供样<br>原因
                            </td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" rowspan="2" colspan="10">
                                {{ form.againForsampleReason }}
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">标准/法律法规</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11">
                                <el-checkbox :checked="form.legal == '0'" disabled>无要求</el-checkbox>
                                <el-checkbox :checked="form.legal == '1'" disabled>有要求
                                    ( <input name="legalRequire" class="txtBoxnoborder" type="text" size="14" disabled
                                        :value="form.legalRequire">)
                                </el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="5">外观包装</td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="11">
                                <el-checkbox :checked="form.appearancePack == '0'" disabled>无需求</el-checkbox>
                                <el-checkbox :checked="form.appearancePack == '1'" disabled>有需求(<input
                                        name="appearancePackRequire" class="txtBoxnoborder" type="text" size="14" disabled
                                        :value="form.appearancePackRequire">)</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="font-size: 14px;" colspan="28">选 材 料 依 据</td>
                            <td align="center" class="bottomTableTd" style="font-size: 14px;" rowspan="6">顾<br>客<br>信<br>息
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">样品图号</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">{{ form.drawingNo }}</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">炭刷规格</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11">{{ form.carbonBrushSpec }}</td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">电机用途<br>大类</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-col :span="12">
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7927" disabled>吸尘器</el-checkbox>
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7928" disabled>电动工具</el-checkbox>
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7929" disabled>小家电</el-checkbox>
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7930" disabled>洗衣机</el-checkbox>
                                </el-col>
                                <el-col :span="12">
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7931" disabled>工业</el-checkbox>
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7932" disabled>汽车</el-checkbox>
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7933" disabled>其他</el-checkbox>
                                    <el-checkbox :checked="form.motorUsesMainCategoryId == 7934" disabled>园林工具</el-checkbox>
                                </el-col>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">电机用途细分</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11"> {{ form.motorUsesSmallCategory }}
                            </td>
                        </tr>
                        <tr>
                            <td style="font-size: 14px;" colspan="2">额定电压</td>
                            <td style="font-size: 14px;" colspan="10">
                                <el-checkbox :checked="form.voltageKind == 'AC'" disabled>AC
                                    <input v-if="form.voltageKind == 'AC'" class="txtBoxnoborder" type="text" size="14"
                                        disabled :value="form.voltageKind + 'V'"></el-checkbox>
                                <el-checkbox :checked="form.voltageKind == 'DC'" disabled>DC
                                    <input v-if="form.voltageKind == 'DC'" class="txtBoxnoborder" type="text" size="14"
                                        disabled :value="form.voltageKind + 'V'"></el-checkbox>
                            </td>
                            <td style="font-size: 14px;" colspan="5">电机转速</td>
                            <td style="font-size: 14px;" colspan="11">
                                {{ form.motorSpeed }}rpm
                            </td>
                        </tr>
                        <tr>
                            <td style="font-size: 14px;" colspan="2"> 额定功率 </td>
                            <td style="font-size: 14px;" colspan="4">
                                {{ form.ratedPower }}W
                            </td>
                            <td style="font-size: 14px;" colspan="2"> 碟厚 </td>
                            <td style="font-size: 14px;" colspan="4">
                                {{ form.thickPlate }}W
                            </td>
                            <td style="font-size: 14px;" colspan="5">抗电磁干扰</td>
                            <td style="font-size: 14px;" colspan="11">
                                <el-checkbox :checked="form.defyEMI == '0'" disabled>无要求</el-checkbox>
                                <el-checkbox :checked="form.defyEMI == '1'" disabled>有要求
                                    ( <input class="txtBoxnoborder" disabled type="text" size="14"
                                        :value="form.defyEMIRequire">)
                                </el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="2"> 寿命 </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="4">
                                {{ form.lifetime }}
                            </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="2"> </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="4"> &nbsp;&nbsp; </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="5"> </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="4"> &nbsp;&nbsp; </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="3"> </td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="4"> &nbsp;&nbsp; </td>

                        </tr>
                        <tr>
                            <td align="center" style="font-size: 14px;" colspan="28">选 择 材 料</td>
                            <td align="center" style="font-size: 14px;" rowspan="5">技<br>术<br>部<br>确<br>认</td>
                        </tr>
                        <tr>
                            <td style="font-size: 14px;" colspan="2">指定材料</td>
                            <td style="font-size: 14px;" colspan="12">
                                <el-checkbox disabled>没有</el-checkbox>
                                <el-checkbox disabled>有
                                    1、<input class="txtBoxnoborder" disabled type="text" size="8">
                                    2、<input class="txtBoxnoborder" disabled type="text" size="8">
                                    3、<input class="txtBoxnoborder" disabled type="text" size="8">
                                </el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">推荐材料</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="12">
                                <el-checkbox disabled>没有</el-checkbox>
                                <el-checkbox disabled>有
                                    1、<input class="txtBoxnoborder" disabled type="text" size="5">
                                    2、<input class="txtBoxnoborder" disabled type="text" size="5">
                                    3、<input class="txtBoxnoborder" disabled type="text" size="5">
                                </el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">新开模具</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox disabled>不需要</el-checkbox>
                                <el-checkbox disabled>需要</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">压制类型</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="11">
                                <el-checkbox disabled>横压</el-checkbox>
                                <el-checkbox disabled>立压</el-checkbox>
                                <el-checkbox disabled>平压</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">模具类型</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox disabled>炭刷开模</el-checkbox>
                                <el-checkbox disabled>刷架开模</el-checkbox>
                                <el-checkbox disabled>铜套开模</el-checkbox>
                                <el-checkbox disabled>压接开模</el-checkbox>
                                <el-checkbox disabled>端子开模</el-checkbox>
                            </td>
                            <td style="font-size: 14px;" colspan="4">模具图纸纳期</td>
                            <td style="font-size: 14px;" colspan="12"></td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="2">APQP方式</td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox disabled>A类</el-checkbox>
                                <el-checkbox disabled>B类</el-checkbox>
                                <el-checkbox disabled>C类</el-checkbox>
                            </td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="2">产品类型</td>
                            <td class="bottomTableTd" style="font-size: 14px;" colspan="14">
                                <el-checkbox :checked="form.productKind == '0'" disabled>一般产品</el-checkbox>
                                <el-checkbox :checked="form.productKind == '1'" disabled>特殊产品</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">工艺及<br>设备能力</td>
                            <td style="font-size: 14px;" colspan="6">
                                <el-checkbox disabled>满足</el-checkbox>
                                <el-checkbox disabled>不满足</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">砂轮</td>
                            <td style="font-size: 14px;" colspan="3">
                                <el-checkbox disabled>有</el-checkbox>
                                <el-checkbox disabled>无</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="4">生产工装</td>
                            <td style="font-size: 14px;" colspan="3">
                                <el-checkbox disabled>有</el-checkbox>
                                <el-checkbox disabled>无</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">试生产</td>
                            <td style="font-size: 14px;" colspan="6">
                                <el-checkbox disabled>需要</el-checkbox>
                                <el-checkbox disabled>不需要</el-checkbox>
                            </td>
                            <td align="center" class="bottomTableTd" style="font-size: 14px;" rowspan="8">
                                生<br>产<br>部<br>确<br>认
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">新开模具</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="14">
                                <el-checkbox disabled>需要</el-checkbox>
                                <el-checkbox disabled>样件不需要，量产需要</el-checkbox>
                                <el-checkbox disabled>样件不需要，量产需要</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">量产可行性</td>
                            <td style="font-size: 14px;" colspan="10">
                                <el-checkbox disabled>可直接量产</el-checkbox>
                                <el-checkbox disabled>可量产，但需改进</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">材料库存</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox disabled>有</el-checkbox>
                                <el-checkbox disabled>无或有一部分，需采购</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">托外生产</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="14">
                                <el-checkbox disabled>不需要</el-checkbox>
                                <el-checkbox disabled>需要 (厂商：<input class=txtBoxnoborder size=15>)</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="font-size: 14px;" colspan="28">纳期确认</td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">原材料</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                1、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                                2、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">弹簧</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="6">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">端子</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="6">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>

                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">生产工装</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">检验工装</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">检具 </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>

                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">铜套</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">砂轮</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="7">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">镀铜</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="7">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">刷架</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="8">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="2">碳刷</td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="9">
                                1、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                                2、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="2">组件</td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="15">
                                1、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                                2、&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;日
                            </td>
                        </tr>
                        <tr>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">检测能力</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="14">
                                <el-checkbox disabled>无</el-checkbox>
                                <el-checkbox disabled>有
                                    (<input class="txtBoxnoborder" disabled type="text" size="15">)
                                </el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">添置检<br>测仪器</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="10">
                                <el-checkbox disabled>无</el-checkbox>
                                <el-checkbox disabled>有
                                    (<input class="txtBoxnoborder" disabled type="text" size="15">)
                                </el-checkbox>
                            </td>
                            <td align="center" style="font-size: 14px;" rowspan="3">品<br>质<br>确<br>认</td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" rowspan="2" colspan="2">检具工装
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="3"> 辅资材</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                <el-checkbox disabled>不需要</el-checkbox>
                                <el-checkbox disabled>需要</el-checkbox>
                            </td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" rowspan="2" colspan="2">
                                检具工装<br>提供者
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="6">
                                <el-checkbox disabled>STI</el-checkbox>
                                <el-checkbox disabled>客户</el-checkbox>
                                <el-checkbox disabled>供应商</el-checkbox>
                            </td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="2">ROHS报告</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="8">
                                <el-checkbox disabled>齐全</el-checkbox>
                                <el-checkbox disabled>不齐全</el-checkbox>
                                <el-checkbox disabled>无</el-checkbox>
                            </td>
                        </tr>
                        <tr>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="3"> 组 件</td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="5">
                                <el-checkbox disabled>不需要</el-checkbox>
                                <el-checkbox disabled>需要</el-checkbox>
                            </td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="6">

                                <el-checkbox disabled>STI</el-checkbox>
                                <el-checkbox disabled>客户</el-checkbox>
                                <el-checkbox disabled>供应商</el-checkbox>
                            </td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="3">ROHS报告纳期</td>
                            <td class="bottomTableTd" nowrap="nowrap" style="font-size: 14px;" colspan="7">
                                <input class="txtBoxnoborder" disabled type="text" size="14">
                            </td>
                        </tr>
                        <tr height="30">
                            <td nowrap="nowrap" style="font-size: 14px;">判定</td>
                            <td nowrap="nowrap" style="font-size: 14px;" colspan="4">尺寸
                                <el-checkbox disabled>OK</el-checkbox>
                                <el-checkbox disabled>NG</el-checkbox>
                            </td>
                            <td nowrap="nowrap" colspan="4" style="font-size: 14px;">功能
                                <el-checkbox disabled>OK</el-checkbox>
                                <el-checkbox disabled>NG</el-checkbox>
                            </td>
                            <td align="center" nowrap="nowrap" style="font-size: 14px;" colspan="20">部门确认</td>
                        </tr>
                        <tr>
                            <td valign="top" style="font-size: 14px;" rowspan="3" colspan="9">备注：
                            </td>
                            <td align="center" style="font-size: 14px;" rowspan="2" colspan="2">品质部</td>
                            <td align="center" style="font-size: 14px;" colspan="9">生产部</td>
                            <td align="center" style="font-size: 14px;" rowspan="2" colspan="5">技术部</td>
                            <td align="center" style="font-size: 14px;" rowspan="2" colspan="5">营业部</td>
                        </tr>
                        <tr>
                            <td align="center" style="font-size: 14px;" colspan="3">外协</td>
                            <td align="center" style="font-size: 14px;" colspan="3">物流资材</td>
                            <td align="center" style="font-size: 14px;" colspan="3">设备</td>
                        </tr>
                        <tr>
                            <td style="font-size: 14px;" colspan="2">
                                <el-checkbox disabled>可行</el-checkbox>
                                <br> &nbsp; <br> &nbsp;<br> &nbsp;<br> &nbsp;
                            </td>
                            <td style="font-size: 14px;" colspan="3">
                                <el-checkbox disabled>可行</el-checkbox>
                                <br> &nbsp; <br> &nbsp;<br> &nbsp;<br> &nbsp;
                            </td>
                            <td style="font-size: 14px;" colspan="3">
                                <el-checkbox disabled>可行</el-checkbox>
                                <br> &nbsp; <br> &nbsp;<br> &nbsp;<br> &nbsp;
                            </td>
                            <td style="font-size: 14px;" colspan="3">
                                <el-checkbox disabled>可行</el-checkbox>
                                <br> &nbsp; <br> &nbsp;<br> &nbsp;<br> &nbsp;
                            </td>
                            <td style="font-size: 14px;" colspan="5">
                                <el-checkbox disabled>可行</el-checkbox>
                                <br> &nbsp; <br> &nbsp;<br> &nbsp;<br> &nbsp;
                            </td>
                            <td style="font-size: 14px;" colspan="5">
                                <el-checkbox disabled>可行</el-checkbox>
                                <br> &nbsp; <br> &nbsp;<br> &nbsp;<br> &nbsp;
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table cellSpacing=0 cellPadding=0 width="950" align=center border=0 style="color:#000000">
                    <tbody>
                        <tr class=bgwhitecenter height=30>
                            <td colSpan=3 noWrap>&nbsp; </td>
                        </tr>
                        <tr class=bgwhitecenter>
                            <td colSpan=2 noWrap align=left style="font-size: 14px;">表格代码：<input class=txtBoxnoborder
                                    size=12 :value="form.tableCodeName" name=tableNo> </td>
                            <td colSpan=2 noWrap align=right style="font-size: 14px;">版本/版次： D/{{ form.sampleVersion }}</td>
                        </tr>
                    </tbody>
                </table>
            </table>
        </div>
        <div class="footer">

            <el-button :icon="Printer" type="primary" @click="print1">打印</el-button>
            <el-button :icon="Upload" @click="exportExcel">导 出</el-button>
            <el-button :icon="Close" type="danger" @click="updateVisible">取 消</el-button>
        </div>
    </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import { Printer, Upload, Close } from '@element-plus/icons-vue'
import Api from '@/api/model/sample'
import print from '@/utils/print'
const form = ref({
})
const printTable = ref(null)
const emit = defineEmits(['updatetable'])
const props = defineProps({
    paramsData: {
        type: Object,
        defalut: {}
    }
})
onMounted(() => {
    getInit()
})
const getInit = async () => {
    let res = await Api.audittable.detail.post(props.paramsData)
    if (res.code == '200') {
        form.value = res.data
        form.value.appointStuffs1 = form.value.appointStuffsArray[0]
        form.value.appointStuffs2 = form.value.appointStuffsArray[1]
        form.value.appointStuffs3 = form.value.appointStuffsArray[2]
        form.value.recommendStuffsArray = form.value.recommendStuffs.split(",")
        form.value.recommendStuffs1 = form.value.recommendStuffsArray[0]
        form.value.recommendStuffs2 = form.value.recommendStuffsArray[1]
        form.value.recommendStuffs3 = form.value.recommendStuffsArray[2]
    }
}
const updateVisible = (val) => {
    emit('updatetable')
}
const exportExcel = async () => {
    props.paramsData.name = printTable.value.innerHTML
    console.log(props.paramsData)
    let res = await Api.audittable.exportExcel.post(props.paramsData)
    if (res.code == 200) {
        window.open(res.data)
    }
}
const print1 = () => {
    print(printTable.value)
}
</script>
<style scoped lang="less">
:deep(.el-checkbox__label) {
    font-size: 14px;
    color: #000000;
    padding-left: 5px;
}

:deep(.el-checkbox) {
    --el-checkbox-checked-input-border-color: #000000;
    --el-checkbox-checked-bg-color: #000000;
    --el-checkbox-checked-text-color: #000000;
    --el-checkbox-checked-icon-color: #000000;
    ;
    margin-right: 0px;
    margin-left: 5px;
    height: 20px;
}

:deep(.el-checkbox__input.is-checked .el-checkbox__inner) {
    background-color: #ffffff;
}

:deep(.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner) {
    background-color: #ffffff;
    border-color: #000000;
}

:deep(.el-checkbox__inner) {
    border-color: #000000;
    width: 12px;
    height: 12px;
}

:deep(.el-checkbox__input.is-disabled+span.el-checkbox__label) {
    color: #000000;
    cursor: not-allowed;
}

:deep(.el-checkbox__input.is-disabled .el-checkbox__inner) {
    background-color: #ffffff;
    border-color: #000000;
    cursor: not-allowed;
}

:deep(.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after) {
    border-color: #000000;
}

.barCodeTable {
    border-left: 2px inset black;
    border-top: 2px inset black;
    border-bottom: 2px inset black;
    border-right: 2px inset black;
}

.bgwhitecenter {
    background-color: #FFFFFF;
    text-align: center;
}

.bottomTableTd {
    border-bottom: 1px inset black;
    border-color: #000000;
}

.rightTableTd {
    border-right: 2px inset black;
    border-color: #000000;
}

.tnt {
    writing-mode: tb-rl;
    text-align: left;
    font-size: 9pt
}

.printTable1 {
    border: 1 #000000 inset;
    border-width: 2 2 2 2;
    border-collapse: collapse;
    color: #000000
}

.printTdBorder {
    border: 1 #000000 solid;
    border-width: 1 1 1 1
}

.printTdNoBottomBorder {
    border: 1 #000000 solid;
    border-width: 0 1 0 0
}

.txtBoxnoborder {
    border: 1 #000000 inset;
    background-color: #FFFFFF;
    border: none;
    font-size: 14px;
    height: 15px;
    color: #000000
}</style>
